home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / managers / mc-3.2 / mc-3 / mc-3.2.1 / Make.common.in < prev    next >
Encoding:
Text File  |  1996-05-17  |  2.8 KB  |  100 lines

  1. VERSION=3.2.1
  2. SHELL = /bin/sh
  3.  
  4. # This variable makes it possible to move the installation root to another
  5. # directory. This is useful when you're creating a binary distribution of mc.
  6. # If empty, normal root will be used.
  7. # You can run e.g. 'make install DESTDIR=/packages/mc/3.0' to accomplish
  8. # that.
  9. # DESTDIR = /opt/apps/mc/$(VERSION)
  10.  
  11. # Installation target directories & other installation stuff
  12. prefix = @prefix@
  13. exec_prefix = $(prefix)
  14. binprefix =
  15. manprefix =
  16. bindir = $(exec_prefix)/bin
  17. libdir = $(exec_prefix)/lib/mc
  18. suppbindir = $(libdir)/bin
  19. tidir = $(libdir)/term
  20. extfsdir = $(libdir)/extfs
  21. icondir = $(libdir)/icons
  22. mandir = $(prefix)/man/man1
  23. manext = 1
  24. man8dir = $(prefix)/man/man8
  25. man8ext = 8
  26. xv_bindir = @xv_bindir@
  27.  
  28. # Tools & program stuff
  29. SEDCMD = @SEDCMD@
  30. SEDCMD2 = @SEDCMD2@
  31. STRIP = @STRIP@
  32. @SET_MAKE@
  33. CC = @CC@
  34. CPP = @CPP@
  35. AR = @AR@
  36. RANLIB = @RANLIB@
  37. RM = @RM@
  38. RMF = @RM@ -f
  39. MV = @MV@
  40. CP = @CP@
  41. LN_S = @LN_S@
  42. AWK = @AWK@
  43.  
  44. # Flags & libs
  45. # No way, to make make happy (except GNU), we cannot use := to append
  46. # something to these, so that's why there is a leading _
  47. XCFLAGS = @CFLAGS@
  48. XCPPFLAGS = @CPPFLAGS@ -I.. -DBINDIR=\""$(bindir)/"\" -DLIBDIR=\""$(libdir)/"\" -DICONDIR=\""$(icondir)/"\" $(XINC)
  49. XLDFLAGS = @LDFLAGS@
  50. XDEFS = @DEFS@
  51. XLIBS = @LIBS@
  52.  
  53. # Where do we have the sources?
  54. # You shouldn't have to edit this :)
  55. mcsrcdir = $(rootdir)/src
  56. docdir   = $(rootdir)/doc
  57. datadir  = $(rootdir)/lib
  58. slangdir = $(rootdir)/slang
  59. vfsdir   = $(rootdir)/vfs
  60. xvdir    = $(rootdir)/xv
  61. tkdir     = $(rootdir)/tk
  62. icodir   = $(rootdir)/icons
  63.  
  64. hpath = -I$(mcsrcdir) -I$(slangdir) -I$(vfsdir) -I$(xvdir) -I$(xvdir)/support/xview_private -I$(tkdir)
  65.  
  66. # Rules
  67. first_rule: all
  68.  
  69. @PHONY@ all check cross TAGS clean install uninstall distcopy depend dep
  70. @PHONY@ fastdep fastdepslang fastdepvfs fastdeploc slowdep
  71.  
  72. @PCENTRULE@../slang/%.o : ../slang/%.c
  73. @PCENTRULE@    cd ../slang; $(MAKE) libmcslang.a
  74.  
  75. @PCENTRULE@../vfs/%.o : ../vfs/%.c
  76. @PCENTRULE@    cd ../vfs; $(MAKE) libvfs.a
  77.  
  78. fastdep: dummy
  79.     if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
  80.     { cd $(srcdir); $(AWK) -v hpath="$(hpath)" -v srcdir=$(srcdir) -f $(mcsrcdir)/depend.awk *.[ch] } > .depend; fi
  81.     -$(MAKE) fastdeploc
  82.     @WRITEDEP@
  83.  
  84. fastdepslang:
  85. @PCENTRULE@    { { { cd ../slang; $(MAKE) showlibdep } | grep OBJS; cat .depend } | { cd $(slangdir); $(AWK) -v dolib="../slang libmcslang.a" -v hpath="$(hpath)" -v srcdir=$(slangdir) -f $(mcsrcdir)/depend.awk } } >> .depend
  86.  
  87. fastdepvfs:
  88. @PCENTRULE@    { { { cd ../vfs; $(MAKE) showlibdep } | grep OBJS; cat .depend } | { cd $(vfsdir); $(AWK) -v dolib="../vfs libvfs.a" -v hpath="$(hpath)" -v srcdir=$(vfsdir) -f $(mcsrcdir)/depend.awk } } >> .depend
  89.  
  90. slowdep: dummy
  91.     if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
  92.     $(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi
  93.     @WRITEDEP@
  94.  
  95. mcdep: @dep@
  96.  
  97. dummy:
  98.  
  99. # End of Make.common
  100.